package com.wzg.model.user;

import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 用户凭证表
 * </p>
 *
 * @author wzg
 * @since 2020-01-12
 */
public class UserCredentials implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 用户名或手机号等
     */
    private String username;

    /**
     * 账号类型（用户名、手机号）
     */
    private String type;

    /**
     * 用户id
     */
    @TableField("userId")
    private Integer userId;

    public UserCredentials(String username, String type, Integer userId) {
        this.username = username;
        this.type = type;
        this.userId = userId;
    }


    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "UserCredentials{" +
        "username=" + username +
        ", type=" + type +
        ", userId=" + userId +
        "}";
    }
}
